/*
 * @Author: xiaosihan 
 * @Date: 2023-11-18 02:39:23 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2023-11-18 02:44:45
 */

import { autorun } from "mobx";
import { ReactNode, useEffect, useRef, useState } from "react";
import styles from "./wxqrcode.module.less";
import wxService from "./wxService";
import { Spin } from "antd";

interface Iprops {
    children: ReactNode
}

// 微信扫码页面
export default function WXQRCode() {

    const dom = useRef<HTMLDivElement | null>(null);
    const [data, setData] = useState({});

    useEffect(() => {
        wxService.login("wxqrcode");
    }, []);

    useEffect(() => autorun(() => {

    }), []);

    return (
        <div className={styles.wxqrcode} >
            <Spin />
            <div id="wxqrcode"></div>
        </div>
    );

}